package core

import (
	"bytes"
)

type GioHandler interface {
	Decode(buffer *bytes.Buffer, readableLength int32, ctx *ChannelContext) (Packet, error)

	Encode(packet Packet, ctx *ChannelContext) *bytes.Buffer

	Handler(packet Packet, ctx *ChannelContext)
}
